Skip to content

Conversation

@cgillum
Copy link
Member

@cgillum cgillum commented Jan 25, 2026

Summary

This PR adds support for propagating the Azure Functions invocation ID to the Durable Functions host via gRPC metadata, enabling correlation between worker-side function invocations and host-side orchestration events.

Changes

Client Library (client module)

  • Added withInterceptors() method to DurableTaskGrpcClientBuilder for registering custom gRPC interceptors
  • Interceptors are applied to all gRPC calls made by the client

Azure Functions Integration (azurefunctions module)

  • Created FunctionInvocationIdInterceptor that adds x-azure-functions-invocationid metadata to gRPC calls
  • Updated DurableClientContext to automatically configure the interceptor using the invocation ID from ExecutionContext
  • The interceptor is internal and automatically wired up - no user action required

Related

Adds support for propagating the Azure Functions invocation ID to the Durable
Functions host via gRPC metadata, enabling correlation between worker-side
function invocations and host-side orchestration events.

- Added interceptor support to DurableTaskGrpcClientBuilder
- Created FunctionInvocationIdInterceptor in azurefunctions module
- Updated DurableClientContext to configure the interceptor automatically
- Added unit tests for the interceptor

Related to Azure/azure-functions-durable-extension#3317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants